<template>
    <div class="chart">
        <img :src="chartObj.imgUrl" alt="">
        <div class="info">
            <div class="value">{{ chartObj.value }}</div>
            <div class="nums" v-if="chartObj.id!=4">{{ chartObj.name }}： <span>{{ chartObj.num }}</span></div>
            <div class="status" v-else>{{chartObj.num}}!</div>
        </div>
    </div>
</template>
<script>
export default {
    props:['chartObj']
}
</script>
<style lang="scss" scoped>
.chart {
    width: 100%;
    padding: 5px 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    img {
        width: 80px;
        height: 80px;
        object-fit: contain;
    }
    .value {
        font-size: 24px;
        font-weight: 700;
        color: #000;
        margin-bottom: 10px;
        text-align: right;
    }
    .nums {
        span {

            font-size: 18px;
            font-weight: 500;
            color: #000;
        }
    }
    .status {
        color: #0f0;
        font-size: 15px;
        font-weight: 600;
    }
}
</style>